﻿<navigation:Page x:Class="IndexMarkSilverlightClient.Views.Player" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:ExpressionMediaPlayer="clr-namespace:ExpressionMediaPlayer;assembly=MediaPlayer"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Loaded="Page_Loaded"
           Title="Проигрыватель">
    
    <navigation:Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="./PlayerStyle.xaml"></ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </navigation:Page.Resources>
    
    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="35" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Button Grid.Column="0" Cursor="Hand" Click="Button_Click">
            <StackPanel Orientation="Vertical">
                <TextBlock FontSize="14" FontWeight="Bold" Foreground="White" HorizontalAlignment="Center" Text="С" />
                <TextBlock FontSize="14" FontWeight="Bold" Foreground="White" HorizontalAlignment="Center" Text="о" />
                <TextBlock FontSize="14" FontWeight="Bold" Foreground="White" HorizontalAlignment="Center" Text="д" />
                <TextBlock FontSize="14" FontWeight="Bold" Foreground="White" HorizontalAlignment="Center" Text="е" />
                <TextBlock FontSize="14" FontWeight="Bold" Foreground="White" HorizontalAlignment="Center" Text="р" />
                <TextBlock FontSize="14" FontWeight="Bold" Foreground="White" HorizontalAlignment="Center" Text="ж" />
                <TextBlock FontSize="14" FontWeight="Bold" Foreground="White" HorizontalAlignment="Center" Text="а" />
                <TextBlock FontSize="14" FontWeight="Bold" Foreground="White" HorizontalAlignment="Center" Text="н" />
                <TextBlock FontSize="14" FontWeight="Bold" Foreground="White" HorizontalAlignment="Center" Text="и" />
                <TextBlock FontSize="14" FontWeight="Bold" Foreground="White" HorizontalAlignment="Center" Text="е" />
                <Image HorizontalAlignment="Center" Height="24" Width="24" Source="/IndexMarkSilverlightClient;component/Views/Help/Images/Previous.png"></Image>
            </StackPanel>

            <Button.Template>
                <ControlTemplate TargetType="Button">
                    <Border x:Name="Border" Background="#ffa3c7fc">
                        <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" />
                    </Border>
                </ControlTemplate>
            </Button.Template>
        </Button>

        <ExpressionMediaPlayer:MediaPlayer Style="{StaticResource MediaPlayerStyle1}" Margin="5,0,0,0" MaxHeight="664" MaxWidth="906" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" x:Name="mediaPlayer" d:LayoutOverrides="Height">
            <ExpressionMediaPlayer:MediaPlayer.Playlist>
                <ExpressionMediaPlayer:Playlist DisplayTimeCode="True" StretchMode="Uniform" AutoLoad="False" AutoPlay="False">
                </ExpressionMediaPlayer:Playlist>
            </ExpressionMediaPlayer:MediaPlayer.Playlist>
        </ExpressionMediaPlayer:MediaPlayer>
    </Grid>
</navigation:Page>
